package com.shiro.services;

import com.shiro.dao.TokenSimpleDao;
import com.shiro.entity.Token;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;




/**
 * 无状态Services
 * 
 * @author Eason
 */

@Component
public class AccountStatelessService extends AbstractService{

	private static Logger logger = LoggerFactory.getLogger(AccountStatelessService.class);
	
	@Autowired
	private TokenSimpleDao tokenSimpleDao;
	
	public Token findUserByToken(String token){
		return this.tokenSimpleDao.findByToken(token);
	}
	
}